﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PaymentGateway.aspx.cs" Inherits="PaymentGateway" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
     <form id="form1" action="https://www.payzippy.com/payment/api/charging/v1" method="post">
    
    <div>
    
        <div>

            <%
                var url = "";

                foreach (var entry in chargingParams)
                {
            %>
            <input type="hidden" name="<%=entry.Key %>" value="<%=entry.Value %>" />
            <%
url += entry.Key + "=" + entry.Value + "&";
                    // do something with entry.Value or entry.Key
                }
             
            %>
        
        </div>
        <%--<iframe width="500" height="500" src="<%=url %>"></iframe>--%>
    </div>
    </form>
    <script>
        document.forms[0].submit();
        var x = document.getElementById("__VIEWSTATE");
        x.parentNode.removeChild(x);
    </script>
</body>
</html>
